<div class="new-item">
<% if new_item.is_a?(PayableBill) -%>
  <%= image_tag 'icons/new_bill.png' %>
  <span id="details">
    <strong><%= new_item.bill.name %></strong>
    <%= new_item.details %> (<%= distance_of_time_in_words_to_now(new_item.due) %><%= ' ago' if new_item.due < Time.now.to_date %>)
  </span>
<% else -%>
  (Unknown)
<% end -%>
</div>
